
const express = require('express')
const path = require('path')
const app = express()


const rootPath = path.join(__dirname, './public')
app.use(express.static(rootPath))
const rootRouter = require('./api/router')
app.use('/api', rootRouter)

app.listen(5000, () => {
    console.log('5000 gogogogo!!!')
})